CC = gcc
OFILES = ej4_s.o fifo.o

all: ej4_s ej4_c

ej4_c:
	$(CC) ej4_c.c -o ej4_c

ej4_s: $(OFILES)
	$(CC) -o ej4_s $(OFILES)

main.o: tp2ej4.c
	$(CC) -c ej4_s.c

fifo.o: fifo/fifo.c
	$(CC) -c fifo/fifo.c

clean:
	rm *.o ej4_s ej4_c arch_fifo
